//@author A0106044W
package logic;

import storage.Date;
import storage.Time;

/**
 * 
 * 
 * 	       Sothearith Sreang
 *         All of the Logic part is written by me.
 * 
 */

public class DisplayTaskInfo {
	
	int index;
	
	String description;
	String startDate;
	String endDate;
	String startTime;
	String endTime;
	String status;
	String overDue;
	
	
	public DisplayTaskInfo(String descriptionP, Date startDateP, Date endDateP, Time startTimeP, Time endTimeP, boolean statusP, boolean overDueP) {
		setDescription(descriptionP);
		setStartDate(startDateP);
		setEndDate(endDateP);
		setStartTime(startTimeP);
		setEndTime(endTimeP);
		setStatus(statusP);
		setOverDue(overDueP);
	}
	
	// get methods

	public int getIndex() {
		return index;
	}
	
	public String getDescription() {
		return description;
	}
	
	public String getStartDate() {
		return startDate;
	}
	
	public String getEndDate() {
		return endDate;
	}
	
	public String getStartTime() {
		return startTime;
	}
	
	public String getEndTime() {
		return endTime;
	}
	
	public String getStatus() {
		return status;
	}
	
	public String getOverDueStatus() {
		return overDue;
	}
	
	// set methods
	
	public void setIndex(int indexP) {
		index = indexP;
	}
	
	private void setDescription(String descriptionP) {
		description = descriptionP;
	}
	
	private void setStartDate(Date date) {
		startDate = Helper.getDateForm(date);
	}
	
	private void setEndDate(Date date) {
		endDate = Helper.getDateForm(date);
	}
	
	private void setStartTime(Time time) {
		startTime = Helper.getTimeForm(time);
	}
	
	private void setEndTime(Time time) {
		endTime = Helper.getTimeForm(time);
	}
	
	private void setStatus(boolean statusP) {
		status = Helper.getStatusForm(statusP);
	}
	
	private void setOverDue(boolean overDueP) {
		overDue = Helper.getOverDueForm(overDueP);
	}
	
}